﻿//Copyright (C) Microsoft Corporation.  All rights reserved.
using System.Collections.Generic;

namespace NorthwindModel.Models
{
    public partial class Customer
    {  

        public void AddOrder(Order order)
        {
            if (Orders == null)
            {
                Orders = new List<Order>();
            }

            if (!Orders.Contains(order))
            {
                Orders.Add(order);
            }

            order.Customer = this;
        }
    }
}
